﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RetailOnlineSite.Dll
{
    public class Lib
    {
        public static string CutWords(string originalString)
        {
            string[] arrayString = originalString.Split(' ');
            if (arrayString.Count() > 6)
            {
                return String.Join(" ", arrayString, 0, 6) + " ...";
            }
            else
                return originalString;
        }
    }
}
